
import { VxeGridPropTypes } from "vxe-table/types/grid";
import XEUtils from 'xe-utils';

export const columns: VxeGridPropTypes.Columns = [
  {type: 'checkbox', width: 50, fixed: 'left',},
  {type: 'seq', title: '序号', treeNode: false, visible: false, width: 60,},
  {field: 'ID', title: 'ID', width: 60, visible: false,},
  {field: 'mark', title: '分组标记', sortable: false, visible: true, minWidth: 150,},
  {field: 'label', title: '字典名称', sortable: false, minWidth: 150,},
  {field: 'code', title: '字典编号', sortable: false, visible: true, minWidth: 100,},
  {field: 'enable', title: '启用', sortable: false, width: 60, formatter: 'formatEnable',},
  {field: 'tag', title: '标识', sortable: false, width: 60,},
  {field: 'memo', title: '备注', visible: true, sortable: false, minWidth: 90,},
  {field: 'creator.name', title: '创建人', sortable: false, visible: true, width: 100,},
  {field: 'CreatedAt', title: '创建时间', visible: true, sortable: true, width: 160,
  formatter ({ cellValue }) {
    return XEUtils.toDateString(cellValue,)
  }},
  {field: 'UpdatedAt', title: '更新时间', visible: false, sortable: false, width: 160,
  formatter ({ cellValue }) {
    return XEUtils.toDateString(cellValue,)
  }},
];


